package task08;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class ProducerConsumerTest {
    public static void main(String[] args) throws InterruptedException {
        List<File> roots = new ArrayList<>();
        roots.add(new File("C:\\work\\db-0002-gryaznov-alex"));
        roots.add(new File("C:\\work\\gryaznov-alex"));

        new ProducerConsumer().startIndexing(rootsArray(roots));
    }

    private static File[] rootsArray(List<File> roots) {
        File[] rootsArray = new File[roots.size()];
        roots.toArray(rootsArray);
        return rootsArray;
    }
}
